package com.bdqn.membersystem.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bdqn.membersystem.mapper.AuUserMapper;
import com.bdqn.membersystem.pojo.AuUser;
import com.bdqn.membersystem.service.AuUserService;
/**
* 作者：姚岳城
* 日期：2020/4/3 16:53
*/

@Service
public class AuUserServiceImpl implements AuUserService{

    @Resource
    private AuUserMapper auUserMapper;

    /**
     * 用户登录
     *
     * @param loginCode
     * @param password
     * @param isStart
     * @return
     */
    @Override
    public AuUser getLogin(String loginCode, String password, Integer isStart) {
        AuUser auUser = auUserMapper.userLogin(loginCode, password, isStart);
        return auUser;
    }

    /**
     * 查询用户列表
     *
     * @param loginCode
     * @return
     */
    @Override
    public List<AuUser> selectAuUser(String loginCode) {
        List<AuUser> auUsers = auUserMapper.selectAuUser(loginCode);
        return auUsers;
    }

    /**
     * 查询用户列表
     *
     * @param auUser
     * @return
     */
    @Override
    public AuUser selectAuUserByPassword(AuUser auUser) {
        return auUserMapper.selectAuUserByPassword(auUser);
    }

    /**
     * 修改密码
     *
     * @param auUser
     * @return
     */
    @Override
    public Integer updateModifyPwd(AuUser auUser) {
        Integer integer = auUserMapper.updateModifyPwd(auUser);
        return integer;
    }


}
